<!DOCTYPE html>
<html >
	<head>
<include file="Public:headinc" />
<link href="<?php echo MY_CDN; ?>/css/search.css" rel="stylesheet" />
<include file="Public:pagestyle" />
	</head>
	<body>
<!-- navigation -->
<include file="Public:nav" />
<!-- // navigation -->
		
<!-- header -->
<include file="Public:header" />
<!-- // header -->
		
<!-- category -->
<include file="Public:category" />
<!-- category -->
		
	<!-- container -->
	<div class="y-bigBlankBar"></div>
	<div class="y-wrapper990">
		<div class="y-leftContainer y-pullLeft">
		
			<div class="y-search-form">
				<form action="{:y_u('Search')}" method="get" name="f1">
					<input type="text" name="k" value="<?php echo $k;?>" maxlength="20" class="append input-xxlarge y-transparent" placeholder="搜索" autocomplete="off"/><button type="submit" class="append btn btn-bigPadding">搜索</button>
				</form>
			</div>

<?php
if(is_array($data)) {
	foreach($data as $val) {
?>			
<div class="y-listItem">
	<div class="y-listItemWrapper">
		<div class="y-listItem-title">
			<h2>
				<span class="y-degress y-pullRight"><?php echo $val['viewnum'];?>℃</span>
				<span><a href="<?php echo y_u('Detail/index', 'id='.$val['id']);?>" title="<?php echo $val['title'];?>"><?php echo $val['title'];?></a></span>
			</h2>
		</div>
		<div class="y-listItem-left y-pullLeft">
			<a href="">
				<img src="<?php echo y_viewImage($val['viewimage']);?>" title="<?php echo $val['title'];?>" alt="<?php echo $val['title'];?>">
			</a>
		</div>
		<div class="y-listItem-right">
			<?php echo $val['description'];?>		
		</div>
		<div class="y-clearL"></div>
		<div class="y-tags">
			<?php echo y_tags($val['tags']); ?>
		</div>
	</div>
</div>
<?php
	}
}
?>		
<div class="page">
<?php echo $pageString;?>
</div>
		</div>
		
		<div class="y-rightContainer y-pullRight">
<include file="Public:rightArticleList"/>
		</div>
		<div class="y-clear"></div>
	</div>
	<!-- // container -->
		
<!-- footer -->
<include file="Public:footer" />
<!-- // footer -->	

	</body>
</html>
